import request from "../../../libs/request";



export  function getControllersList(params){
    return request({url:"/api/v1/locker/controllers?current=1&pageSize=50",params})
}



export function AddPhysical(data) {
    console.log("传入·",data)
  return request({url:'/api/v1/locker/controllers',data,method:"post"});
}

export function Del_controllers(id) {
  return request.delete('/api/v1/locker/controllers/'+id);
}


export function Edit_controllers(id,data) { 
  return request.put('/api/v1/locker/controllers/'+id, data);
}



export function Getxianshireader() { 
  return request.get('/api/gslock/xianshireader');
}



export function SetController(data){

  return request.post('/api/gslock/setreader',data);
} 





